package com.xiaoshuidi.cloud.framework.systemevent.core.data;

import com.xiaoshuidi.cloud.framework.systemevent.core.LeaseSystemEventData;
import com.xiaoshuidi.cloud.framework.systemevent.core.LeaseSystemEventTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 新签事件数据对象
 */
@Data
@ToString(callSuper = true)
public class LeaseSystemEventNewSign implements LeaseSystemEventData {
    /**
     * 合同id
     */
    private Long contractId;
    /**
     * 合同号
     */
    private String contractNo;
    private Long tenantId;
    /**
     * 签约日期
     */
    private Date signDate;
    /**
     * 客户id
     */
    private Long userId;
    /**
     * 门店id
     */
    private Long apartmentId;
    /**
     * 合同开始时间
     */
    private Date contractStartDate;
    /**
     * 合同结束时间
     */
    private Date contractEndDate;
    /**
     * 账单期数
     */
    private Integer rentOrderCount;

    @Override
    public LeaseSystemEventTypeEnum getType() {
        return LeaseSystemEventTypeEnum.NEW_SIGN;
    }
}
